using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DAOLayer;
using DTO;

namespace BUSLayer
{
    public class LoaiKhachBus
    {
        public static DataTable LayDanhSachLoaiKhach()
        {
            //Kiem tra Business Rule neu co
            DataTable dt = new DataTable();
            dt = LoaiKhachDao.LayDanhSachLoaiKhach();
            return dt;
        }
        public static LoaiKhachDto LayMotLoaiKhach(int ma)
        {
            LoaiKhachDto lkhach = new LoaiKhachDto();
            lkhach = LoaiKhachDao.LayMotLoaiKhach(ma);
            return lkhach;
        }
        public static void Them(LoaiKhachDto lp)
        {
            LoaiKhachDao.Them(lp);
        }
        public static void CapNhatXuongCSDL(LoaiKhachDto p)
        {
            LoaiKhachDao.CapNhatXuongCSDL(p);
        }
        public static void Xoa(int MaLKhach)
        {
            LoaiKhachDao.Xoa(MaLKhach);
        }
        public static LoaiKhachDto LayTenMotLoaiKhach(string ten)
        {
            LoaiKhachDto lkhach = new LoaiKhachDto();
            lkhach = LoaiKhachDao.LayTenMotLoaiKhach(ten);
            return lkhach;
        }
    }
}
